package com.czy.owner.entity;

import android.support.annotation.NonNull;

import java.util.List;
import java.util.stream.IntStream;

/**
 * Created by hedepu on 2017-09-30
 */

public class BulletinModel {


    /**
     * lastPage : true
     * pageSize : 20
     * pageNumber : 1
     * firstPage : true
     * list : [{"createTime":1467737676623,"praiseCount":0,"infoBaseId":70,"infoId":117,"from":"未知来源","commentCount":0,"content":null,"title":"系统维护公告","resList":[{"resUrl":"xxx","sort":5,"thumbnailUrl":"xxx","context":"系统将在本周末进行维护，期间软件将暂停服务，在此表示抱歉，维护完成后会有相应的通知","infoId":117,"infoResType":"text","infoResId":461}],"infoBaseType":"bulletin","allowComment":"false","infoBaseName":"系统公告","createType":"system","top":"true","createUserId":1}]
     */

    private boolean lastPage;
    private int pageSize;
    private int pageNumber;
    private boolean firstPage;
    private List<ListBean> list;

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean extends MarqueeBaseModel {
        /**
         * createTime : 1467737676623
         * praiseCount : 0
         * infoBaseId : 70
         * infoId : 117
         * from : 未知来源
         * commentCount : 0
         * content : null
         * title : 系统维护公告
         * resList : [{"resUrl":"xxx","sort":5,"thumbnailUrl":"xxx","context":"系统将在本周末进行维护，期间软件将暂停服务，在此表示抱歉，维护完成后会有相应的通知","infoId":117,"infoResType":"text","infoResId":461}]
         * infoBaseType : bulletin
         * allowComment : false
         * infoBaseName : 系统公告
         * createType : system
         * top : true
         * createUserId : 1
         */

        private long createTime;
        private int praiseCount;
        private int infoBaseId;
        private int infoId;
        private String from;
        private int commentCount;
        private String content;
        private String title;
        private String infoBaseType;
        private String allowComment;
        private String infoBaseName;
        private String createType;
        private boolean top;
        private int createUserId;
        private List<ResListBean> resList;

        @Override
        public String getMaraueeTitle() {
            return title;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public int getPraiseCount() {
            return praiseCount;
        }

        public void setPraiseCount(int praiseCount) {
            this.praiseCount = praiseCount;
        }

        public int getInfoBaseId() {
            return infoBaseId;
        }

        public void setInfoBaseId(int infoBaseId) {
            this.infoBaseId = infoBaseId;
        }

        public int getInfoId() {
            return infoId;
        }

        public void setInfoId(int infoId) {
            this.infoId = infoId;
        }

        public String getFrom() {
            return from;
        }

        public void setFrom(String from) {
            this.from = from;
        }

        public int getCommentCount() {
            return commentCount;
        }

        public void setCommentCount(int commentCount) {
            this.commentCount = commentCount;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getInfoBaseType() {
            return infoBaseType;
        }

        public void setInfoBaseType(String infoBaseType) {
            this.infoBaseType = infoBaseType;
        }

        public String getAllowComment() {
            return allowComment;
        }

        public void setAllowComment(String allowComment) {
            this.allowComment = allowComment;
        }

        public String getInfoBaseName() {
            return infoBaseName;
        }

        public void setInfoBaseName(String infoBaseName) {
            this.infoBaseName = infoBaseName;
        }

        public String getCreateType() {
            return createType;
        }

        public void setCreateType(String createType) {
            this.createType = createType;
        }

        public boolean isTop() {
            return top;
        }

        public void setTop(boolean top) {
            this.top = top;
        }


        public int getCreateUserId() {
            return createUserId;
        }

        public void setCreateUserId(int createUserId) {
            this.createUserId = createUserId;
        }

        public List<ResListBean> getResList() {
            return resList;
        }

        public void setResList(List<ResListBean> resList) {
            this.resList = resList;
        }


        public static class ResListBean {
            /**
             * resUrl : xxx
             * sort : 5
             * thumbnailUrl : xxx
             * context : 系统将在本周末进行维护，期间软件将暂停服务，在此表示抱歉，维护完成后会有相应的通知
             * infoId : 117
             * infoResType : text
             * infoResId : 461
             */

            private String resUrl;
            private int sort;
            private String thumbnailUrl;
            private String context;
            private int infoId;
            private String infoResType;
            private int infoResId;

            public String getResUrl() {
                return resUrl;
            }

            public void setResUrl(String resUrl) {
                this.resUrl = resUrl;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public String getThumbnailUrl() {
                return thumbnailUrl;
            }

            public void setThumbnailUrl(String thumbnailUrl) {
                this.thumbnailUrl = thumbnailUrl;
            }

            public String getContext() {
                return context;
            }

            public void setContext(String context) {
                this.context = context;
            }

            public int getInfoId() {
                return infoId;
            }

            public void setInfoId(int infoId) {
                this.infoId = infoId;
            }

            public String getInfoResType() {
                return infoResType;
            }

            public void setInfoResType(String infoResType) {
                this.infoResType = infoResType;
            }

            public int getInfoResId() {
                return infoResId;
            }

            public void setInfoResId(int infoResId) {
                this.infoResId = infoResId;
            }
        }
    }
}
